package org.jeecg.modules.storage.vo;

import java.util.List;
import org.jeecg.modules.storage.entity.MtStorage;
import org.jeecg.modules.storage.entity.MtStorageItem;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelEntity;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 库存入库/出库单
 * @Author: cheng
 * @Date:   2023-04-25
 * @Version: V1.0
 */
@Data
@ApiModel(value="mt_storagePage对象", description="库存入库/出库单")
public class MtStoragePage {

	/**主键*/
	@ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
	@ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
	@ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
	@ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**单据号*/
	@Excel(name = "单据号", width = 15)
	@ApiModelProperty(value = "单据号")
    private String code;
	/**单据类型*/
	@Excel(name = "单据类型", width = 15, dicCode = "invoices_type")
    @Dict(dicCode = "invoices_type")
	@ApiModelProperty(value = "单据类型")
    private Integer type;
	/**单据状态*/
	@Excel(name = "单据状态", width = 15, dicCode = "is_audit")
    @Dict(dicCode = "is_audit")
	@ApiModelProperty(value = "单据状态")
    private String isAudit;
	/**数量*/
	@Excel(name = "数量", width = 15)
	@ApiModelProperty(value = "数量")
    private java.math.BigDecimal count;
	/**金额*/
	@Excel(name = "金额", width = 15)
	@ApiModelProperty(value = "金额")
    private java.math.BigDecimal amount;
	/**制单人*/
	@Excel(name = "制单人", width = 15)
	@ApiModelProperty(value = "制单人")
    private String makeBy;
	/**制单时间*/
	@Excel(name = "制单时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "制单时间")
    private Date makeTime;
	/**审核人*/
	@Excel(name = "审核人", width = 15)
	@ApiModelProperty(value = "审核人")
    private String auditBy;
	/**审核时间*/
	@Excel(name = "审核时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "审核时间")
    private Date auditTime;
	/**机构*/
	@Excel(name = "机构", width = 15)
	@ApiModelProperty(value = "机构")
    private String unionId;
	/**供应商*/
	@Excel(name = "供应商", width = 15)
	@ApiModelProperty(value = "供应商")
    private String supplierId;
	/**打印状态*/
	@Excel(name = "打印状态", width = 15, dicCode = "is_print")
    @Dict(dicCode = "is_print")
	@ApiModelProperty(value = "打印状态")
    private String isPrint;
	/**审核人*/
	@Excel(name = "审核人", width = 15)
	@ApiModelProperty(value = "审核人")
    private String auditEmpName;
	/**制单人*/
	@Excel(name = "制单人", width = 15)
	@ApiModelProperty(value = "制单人")
    private String empName;
	/**备注*/
	@Excel(name = "备注", width = 15)
	@ApiModelProperty(value = "备注")
    private String remarks;

	@ExcelCollection(name="库存入库/出库单子表")
	@ApiModelProperty(value = "库存入库/出库单子表")
	private List<MtStorageItem> mtStorageItemList;

}
